package com.accenture.training.service;

import java.util.List;



import com.accenture.training.dao.ClientDAO;
import com.accenture.training.dao.ClientDAOList;
import com.accenture.training.domain.Client;

public class ClientServiceImpl implements ClientService {
	
//	private ClientDAOList dao;
	private ClientDAO clientDao;
	private ClientDAOList clientDAOList;
	
	public ClientDAOList getClientDAOList() {
		return clientDAOList;
	}

	public void setClientDAOList(ClientDAOList clientDAOList) {
		this.clientDAOList = clientDAOList;
	}

	public ClientServiceImpl () {
		clientDao = new ClientDAOList();
	}
	
//	public ClientDAO getDao() {
//		return clientDao;
//	}
//	
//	public void setDao(ClientDAOList clientDAOList) {
//		this.clientDAOList = clientDAOList;
//	}
	
	
	public List<Client> listAll() {
//		return clientDao.listAll();
		return clientDAOList.listAll();
	}
	

}
